package org.hsieh.tr.explore.db;

import java.sql.Connection;

import org.hsieh.tr.explore.exception.SqlCommandExecuteException;

/**
 * Represent a sql command
 * 
 * @author xiaowei.ye xiaowei.ye@soyatec.com
 * 
 */
public interface ISqlCommand {

    public String getSqlExpression();

    public void setSqlExpression(final String sqlExpression);

    public Object execute(Connection connection)
	    throws SqlCommandExecuteException;

    public long getExecuteTime();

    public int getIsolcationLevelWhenExecute();

    public Connection getConnection();

}
